package display3d.away3d {
	import away3d.containers.ObjectContainer3D;
	import away3d.core.base.Object3D;
	import away3d.materials.ShadingColorMaterial;
	import away3d.primitives.Cube;
	import away3d.primitives.Trident;
	import jazztures.plugins.away3d.Skeleton3D;


	public class TestSkeleton3D extends Skeleton3D
	{
		
		public function TestSkeleton3D()
		{
			super();
		}
		
		override protected function getDefaultJoint():Object3D{
			var rightMaterial:ShadingColorMaterial = new ShadingColorMaterial(0xFF0000);
			var topMaterial:ShadingColorMaterial = new ShadingColorMaterial(0x00FF00);
			var frontMaterial:ShadingColorMaterial = new ShadingColorMaterial(0x0000FF);
			
			var center:Cube = new Cube();
			center.cubeMaterials.left = center.cubeMaterials.right = rightMaterial;
			center.cubeMaterials.bottom = center.cubeMaterials.top = topMaterial;
			center.cubeMaterials.back = center.cubeMaterials.front = frontMaterial;
			
			center.width = center.height = center.depth = 30;
	
			var trident:Trident = new Trident(80, true);
			
			var container:ObjectContainer3D = new ObjectContainer3D();
			container.addChild(center);
			container.addChild(trident);
			
			return container;
		}
	}
}